package com.hkzhao.reportingsystem.service;

import com.hkzhao.reportingsystem.common.api.CommonResult;
import com.hkzhao.reportingsystem.dto.CaseDto;
import com.hkzhao.reportingsystem.mbg.model.Case;
import com.hkzhao.reportingsystem.mbg.model.Doctor;
import com.hkzhao.reportingsystem.mbg.model.UserPermission;
import org.springframework.transaction.annotation.Transactional;

import javax.servlet.http.HttpServletRequest;
import java.util.Date;
import java.util.List;
import java.util.Map;

public interface DoctorService {
     @Transactional
     CommonResult register(String username,String password,
                            String worker_id,String doctor_type,
                            String province,String identify_id,
                            String validCode,String email);
     @Transactional
     void addCaseDataTOShow(String Locate,  String Level);
     CommonResult send_email(String emailaddress,String message);
     Doctor getDoctorByUsername(String username);
     String login(String username,String password);
     @Transactional
     CommonResult cancelRegister(String username);
     CommonResult registerSendMail(String[] username_validCode);
     CommonResult sendDelayReigsterEmail(String username);
     @Transactional
     CommonResult addCase(String Locate, String Note, String Telephone
                          , int Age, String Level, String Disease_type,
                          String gender, String name,HttpServletRequest request);
     List<Case> getCaseByusername(HttpServletRequest request,int pageNum,int pageSize);
     CommonResult addAuthCase(CaseDto caseDto);
     void addRecordInMongo();
     void addDiagnosisInMongo();
}
